# -*- encoding:utf-8 -*-
# !/usr/bin/env python
'''
    python-08003-04.py
    ======================
    @descript: 迭代
    @copyright:nnz
    @author:dln
    @date: 2021/8/4 9:02
    @version:v1.0
'''
from collections.abc import Iterable
from collections.abc import Iterator
v_bytes=b'nfh'
v_dict={'1':'ab'}
v_genertor=(v_element for v_element in range(1,7))
print(isinstance(v_bytes,Iterable))
print(isinstance(v_dict,Iterable))
print(isinstance(v_genertor,Iterable))

v_list=[1,2,3,4,5]
v_list01=iter(v_list)
while True:
    try:
        v_element=next(v_list01)
        print(v_element)
    except:
        print()
        break
        pass
    pass


